<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>华胜后台管理</title>
		<link rel="stylesheet" type="text/css" href="css/unified.css">
		<script src="plugins/layui/layui.js"></script>
	</head>

	<body>

		<div class="breadcrumbnav">
			<span class="layui-breadcrumb " lay-separator="·">
	          <a ><cite>首页</cite></a>
	          <a ><cite>商品管理</cite></a>
	          <a ><cite>商品管理</cite></a>
	        </span>
		</div>
		<div class="kit-doc">
			<!-- 标题 -->
			<div class="kit-doc-title">
				<fieldset>
					<legend>
						<a name="blockquote">商品</a>
					</legend>
				</fieldset>
			</div>
			<!-- 标题 end-->

			<!-- 概述 -->
			<div class="boderbox">
				<div class="rowtop">
					<button class="layui-btn addbtn openwinbtn" data-method="addmang">添加+</button>
					<button class="layui-btn addbtn openwinbtn layui-bg-blue hidediv" id="yeschoice" data-method="yeschoice">确认选择</button>
					<form class="layui-form searchform" action="" id="comSearchForm">
						<select name="city" lay-verify="" id="serchselect">
							<option value="barCode">条码</option>
							<option value="commodityBrand">品牌</option>
							<option value="commodityName">名称</option>
						</select>
						<div class="layui-input-inline">
							<input type="text" name="text" required lay-verify="required" placeholder="输入关键字" autocomplete="off" class="layui-input" id="demoReload">
						</div>
						<div class="layui-btn-group">
							<div class="layui-btn openwinbtn" data-method="reload">搜索</div>
							<div class="layui-btn layui-btn-normal openwinbtn" data-method="returnTable">重置</div>
						</div>
					</form>
				</div>

				<div class="layui-tab-content notab">
					<div class="layui-tab-item layui-show">
						<table class="layui-table " lay-filter="table100" id="cMtable"></table>
					</div>
				</div>
				
				<!--图片的iframe-->
				<iframe id="framFile" name="framFile" style="display: none;"></iframe>
				<iframe id="framFile1" name="framFile1" style="display: none;"></iframe>
				<iframe id="framFile2" name="framFile2" style="display: none;"></iframe>
				
				<script type="text/html" id="checkboxTpl">
					<input type="checkbox" name="recommendState" value="{{d.id}}" title="推荐" lay-filter="lockDemo" {{ d.recommendState==1 ? 'checked' : '' }}>
				</script>

				<script type="text/html" id="checkboxTpl2">
					<input type="checkbox" name="shelfState" value="{{d.id}}" title="上架" lay-filter="lock2Demo" {{ d.shelfState==1 ? 'checked' : '' }}>
				</script>

				<!--新增商品基础信息的表格内容-->
				<script id="addBox" type="text/html">
					<div class=" layui-layer-wrap">
						<fieldset class="layui-elem-field layui-field-title">
							<legend>新建商品基础信息</legend>
							<div class="layui-field-box">
								<form class="layui-form layui-form-pane" action="" id="addform">
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">条码</label>
											<div class="layui-input-block">
												<input type="text" name="barCode" autocomplete="off" placeholder="" class="layui-input inputRequired " id="barcode" value="">
											</div>
										</div>
									</div>
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">品牌</label>
											<div class="layui-input-block">
												<input type="text" name="commodityBrand" autocomplete="off"  placeholder="" class="layui-input  " value="">
											</div>
										</div>
									</div>

									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">名称</label>
											<div class="layui-input-block">
												<input type="text" name="commodityName" class="layui-input inputRequired" value="">
												<!-- <input type="text" name="createTime" autocomplete="off" lay-verify="required"  placeholder="" class="layui-input">-->
											</div>
										</div>
									</div>
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">型号</label>
											<div class="layui-input-block">
												<input type="text" name="commodityModel" autocomplete="off"  placeholder="" class="layui-input" value="">
											</div>
										</div>
									</div>
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">产地</label>
											<div class="layui-input-block">
												<input type="text" name="commodityOrigin" autocomplete="off"  placeholder="" class="layui-input" value="">
											</div>
										</div>
									</div>
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">重量</label>
											<div class="layui-input-block">
												<input type="text" name="commodityWeigh"  autocomplete="off" class="layui-input" placeholder="" value="">
											</div>
										</div>
									</div>
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">单位</label>
											<div class="layui-input-block">
												<input type="text" name="commodityUnit" autocomplete="off" class="layui-input" placeholder="" value="">
											</div>
										</div>
									</div>

									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">规格</label>
											<div class="layui-input-block">
												<input type="text" name="commoditySet" autocomplete="off" class="layui-input" placeholder="" value="">
											</div>
										</div>
									</div>
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">适用范围</label>
											<div class="layui-input-block">
												<input type="text" name="commodityApply" autocomplete="off" class="layui-input" placeholder="" value="">
											</div>
										</div>
									</div>

									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">商家编号</label>
											<div class="layui-input-block">
												<input type="text" name="merchantNumber" autocomplete="off" class="layui-input inputRequired" placeholder="" value="1">
											</div>
										</div>
									</div>

									<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
										<div class="layui-form-item">
											<label class="layui-form-label">概述</label>
											<div class="layui-input-block">
												<textarea name="commoditySummary" placeholder="" class="layui-textarea">适用于家居墙面浴室装修.优惠又实用</textarea>

											</div>
										</div>
									</div>
								</form>
								<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
									<div class="layui-form-item">

										<form action="#" method="post" enctype="multipart/form-data" target="framFile1" class="updataform1 imgbox">
											<input type="button" class="layui-btn-primary imgbtn" value="选择图片" />
											<input type="file" class=" imgfile" name="files" multiple="true" value="选择文件" accept="image/*" onchange="xmTanUploadImg(this)" />
											<input type="button" class="layui-btn upNewimg" value="确认上传" style="" />

											<img id="xmTanImg" class="xmTanImg" />

										</form>

									</div>

								</div>
							</div>
						</fieldset>
						
						
					</div>
				</script>
				<!--新增商品基础信息的表格内容end-->

				<!--将商品加入库存的表格内容-->
				<script id="ainstBox" type="text/html">
					<div class=" layui-layer-wrap">
						<form class="layui-form layui-form-pane" action="" id="ainstBoxform">
							<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
								<div class="layui-form-item">
									<label class="layui-form-label">库存地点</label>
									<div class="layui-input-block">
										<input type="text" name="locationId" autocomplete="off" lay-verify="number|required" placeholder="" class="layui-input" value="1">
									</div>
								</div>
							</div>
							<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
								<div class="layui-form-item">
									<label class="layui-form-label">库存数量</label>
									<div class="layui-input-block">
										<input type="text" name="theNum" autocomplete="off" lay-verify="required" placeholder="" class="layui-input" value="">
									</div>
								</div>
							</div>

							<div class="layui-layer-btn layui-layer-btn-">
								<input type="button" class="layui-btn yesInsert" value="确认入库" />
								<input type="button" class="layui-btn layui-bg-gray noInsert" value="取消" />
							</div>

						</form>
						
						
						
					</div>

			</div>
			</script>
			<!--将商品加入库存的表格内容end-->

			<!--上架商品的表格内容-->
			<script id="addsaleBox" type="text/html">
				<div class=" layui-layer-wrap">
					<fieldset class="layui-elem-field layui-field-title">
							<legend>上架销售</legend>
							<div class="layui-field-box">
					<form class="layui-form layui-form-pane" action="" id="saleform">
						<div class="layui-col-xs12 layui-col-sm6 layui-col-md6">
							<div class="layui-form-item">
								<label class="layui-form-label">分类</label>
								<div class="layui-input-block">
									<select name="catalog_id" lay-filter="pid" id="Pidselect">
										<option value=""></option>

									</select>

								</div>
							</div>
						</div>

						<div class="layui-col-xs12 layui-col-sm6 layui-col-md6">
							<div class="layui-form-item">
								<label class="layui-form-label">商品编号</label>
								<div class="layui-input-block">
									<input type="text" name="commodityNumber" autocomplete="off" lay-verify="number|required" placeholder="" class="layui-input" id="commodityNumber">
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm6 layui-col-md6">
							<div class="layui-form-item">
								<label class="layui-form-label">简称</label>
								<div class="layui-input-block">
									<input type="text" id="addTime" name="shortName" class="layui-input">
									<!-- <input type="text" name="createTime" autocomplete="off" lay-verify="required"  placeholder="" class="layui-input">-->
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm6 layui-col-md6">
							<div class="layui-form-item">
								<label class="layui-form-label">商品标题</label>
								<div class="layui-input-block">
									<input type="text" name="title" autocomplete="off" lay-verify="number|required" placeholder="" class="layui-input" value="">
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm6 layui-col-md6">
							<div class="layui-form-item">
								<label class="layui-form-label">小标题</label>
								<div class="layui-input-block">
									<input type="text" name="smallTitle" autocomplete="off" lay-verify="required" placeholder="" class="layui-input">
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm6 layui-col-md6">
							<div class="layui-form-item">
								<label class="layui-form-label">商品介绍的url</label>
								<div class="layui-input-block">
									<input type="text" name="introduceUrl" lay-verify="required" autocomplete="off" class="layui-input" placeholder="" value="#">
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm6 layui-col-md6">
							<div class="layui-form-item">
								<label class="layui-form-label">销售单位</label>
								<div class="layui-input-block">
									<input type="text" name="saleUnit" autocomplete="off" lay-verify="required" placeholder="" class="layui-input" value="块">
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm4 layui-col-md4 ">
							<div class="layui-form-item" pane>
								<label class="layui-form-label">是否推荐</label>
								<div class="layui-input-block">
									<input type="checkbox" name="recommendState" lay-skin="switch" value="1">
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm4 layui-col-md4">
							<div class="layui-form-item" pane>
								<label class="layui-form-label">是否热销</label>
								<div class="layui-input-block">
									<input type="checkbox" name="hotState" lay-skin="switch" value="1">
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm4 layui-col-md4">
							<div class="layui-form-item" pane>
								<label class="layui-form-label">是否上架</label>
								<div class="layui-input-block">
									<input type="checkbox" name="shelfState" lay-skin="switch" value="1" checked>
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm4 layui-col-md4">
							<div class="layui-form-item">
								<label class="layui-form-label">原价/分</label>
								<div class="layui-input-block">
									<input type="text" name="originalPrice" lay-verify="required" autocomplete="off" class="layui-input" placeholder="￥" value="200">
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-sm4 layui-col-md4">
							<div class="layui-form-item">
								<label class="layui-form-label">现价/分</label>
								<div class="layui-input-block">
									<input type="text" name="presentPrice" lay-verify="required" autocomplete="off" class="layui-input" placeholder="￥" value="100">
								</div>
							</div>
						</div>
					</form>
					</div>
						
						</fieldset>
					<fieldset class="layui-elem-field layui-field-title">
							<legend>新建库存信息</legend>
							<div class="layui-field-box">
								<form class="layui-form layui-form-pane" action="" id="addInform">

									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">库存地点</label>
											<div class="layui-input-block">
												<input type="text" name="locationId" autocomplete="off" lay-verify="number|required" placeholder="" class="layui-input inputRequired">
											</div>
										</div>
									</div>
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">库存数量</label>
											<div class="layui-input-block">
												<input type="number" name="theNum" autocomplete="off" lay-verify="required" placeholder="" class="layui-input inputRequired">
											</div>
										</div>
									</div>
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">库存上限设置</label>
											<div class="layui-input-block">
												<input type="number" name="theNumUpper" autocomplete="off" lay-verify="required" placeholder="" class="layui-input inputRequired">
											</div>
										</div>
									</div>
									<div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
										<div class="layui-form-item">
											<label class="layui-form-label">库存下限设置</label>
											<div class="layui-input-block">
												<input type="number" name="theNumLower" autocomplete="off" lay-verify="required" placeholder="" class="layui-input inputRequired">
											</div>
										</div>
									</div>
									
								</form>
							</div>
						
						</fieldset>
				</div>
			</script>

			
		</div>
		
	</div>
	<script src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="js/allajax.js"></script>
	
	<script>document.write("<script type='text/javascript' src='js/comMent.js?v=" + Date.now() + "'><\/script>");</script> 
	<!--<script type="text/javascript" src="js/comMent.js" ></script>-->
	</body>

</html>